package com.sz.biz.logistics.ord.enums;

/**
 * Package: com.sz.biz.logistics.ord.enums<br>
 * Description: 定义管理订单类型编码的枚举类
 * @author WuHan<br>
 * @date 2017-11-22 16:02<br>
 * @serial
 * @since ${TAG}
 */
public enum OrdServiceTypeEnum {
    
    /**
     * 物流(Logistics)值为1
     */
    Logistics("1"),
    /**
     * 贸易(Trading)值为2
     */
    Trading("2"),
    /**
     * 金融(Finance)值为3
     */
    Finance("3");
    
    private String type;
    
    OrdServiceTypeEnum(String type) {
        this.type = type;
    }
    
    public String getType() {
        return this.type;
    }
    
    public static OrdServiceTypeEnum valueOfEnum(String type) {
        OrdServiceTypeEnum[] oste = values();
        for (OrdServiceTypeEnum os : oste) {
            if (os.getType().equals(type)) {
                return os;
            }
        }
        return null;
    }
}
